package nccloud.web.pu.buyingreq.action;

import java.util.Map;
import nc.vo.pu.m422x.entity.StoreReqAppVO;
import nccloud.framework.web.ui.pattern.billcard.BillCard;
import nccloud.framework.web.ui.pattern.billcard.BillCardOperator;
import nccloud.framework.web.ui.pattern.extbillcard.ExtBillCard;
import nccloud.web.ct.purdaily.utils.PrecisionUtil;
import nccloud.web.pu.buyingreq.util.BuyingReqScaleUtil;
import nccloud.web.scmpub.pub.event.AbstractBodyAfterAction;
import nccloud.web.scmpub.pub.event.ExtAbstractBodyAfterAction;
import nccloud.web.scmpub.pub.utils.batchcode.SCMBatchCodeConvertor;











public class BuyingreqBodyAfterEditAction
  extends ExtAbstractBodyAfterAction<StoreReqAppVO>
{
  protected String getClassName() { return "nccloud.pubimpl.pu.buyingreq.service.BuyingReqBodyAfterChangEventServiceImpl"; }


  
//  protected BillCard doAfterForBillCard(BillCard billCard, Map userObject) {
//    (new BuyingReqScaleUtil()).processBillCard(billCard, false);
//    return billCard;
//  }

	protected ExtBillCard doAfterForExtBillCard(ExtBillCard extbillCard, Map<String, Object> userObject) {
		BillCard billCard = new BillCard();
		billCard.setHead(extbillCard.getHead());
		billCard.setPageid(extbillCard.getPageid());
		billCard.setTail(extbillCard.getTail());
		billCard.setTempletid(extbillCard.getTempletid());
		billCard.setUserjson(extbillCard.getUserjson());
		billCard.setBody(extbillCard.getBody("card_body"));
		(new BuyingReqScaleUtil()).processBillCard(billCard, false);
		return extbillCard;
	}


  
  protected Map<String, Object> doBeforeForUserObject(Map<String, Object> userObject) {
    SCMBatchCodeConvertor convertor = new SCMBatchCodeConvertor();
    convertor.convertBatchCodeParam(userObject);
    return userObject;
  }
}